package study.springcloud.client.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import study.eggs.result.Result;

@FeignClient(name = "fastapi-service")
public interface PythonClient {

    @GetMapping("/sayHi")
    Result sayHi(@RequestParam("name") String name);

    @PostMapping("/sayBye")
    Result sayBye(@RequestParam("name") String name);
}
